<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>后台登录-X-admin2.2</title>
        <meta name="renderer" content="webkit|ie-comp|ie-stand">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <link rel="stylesheet" th:href="@{/css/font.css}">
        <link rel="stylesheet" th:href="@{/css/xadmin.css}">
        <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
        <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
        <script type="text/javascript" th:src="@{/js/xadmin.js}"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
        <script>
            // 是否开启刷新记忆tab功能
            // var is_remember = false;
        </script>
    </head>
    <body class="index">
        <!-- 顶部开始 -->
        <div class="container">
            <div class="logo">
                <a th:href="@{/}">学籍管理系统</a></div>
            <div class="left_open">
                <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
            </div>
            <th:block th:if="${session.user} != null">
                <ul class="layui-nav right" lay-filter="">
                    <li class="layui-nav-item">
                        <a href="javascript:;" th:text="${session.user.name}"></a>
                        <dl class="layui-nav-child">
                            <!-- 二级菜单 -->
                            <dd>
                                <a onclick="xadmin.open('增加学生','/kxp/toAddStudent')">个人信息</a></dd>
                            <dd>
                                <a onclick="xadmin.open('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
                            <dd>
                                <a th:href="@{/logout}">退出</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item to-index">
                        <a href="/">前台首页</a></li>
                </ul>
            </th:block>
            <th:block th:if="${session.user} == null">
                <ul class="layui-nav right" lay-filter="">
                    <li class="layui-nav-item">
                        <a href="/kxp/toStuLogin">登录</a>
                        <dl class="layui-nav-child">
                            <!-- 二级菜单 -->
                            <dd>
                                <a th:href="@{/toStuLogin}">学生登录</a></dd>
                            <dd>
                                <a th:href="@{/toTeaLogin}">教师登录</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item to-index">
                        <a href="/">前台首页</a></li>
                </ul>
            </th:block>
        </div>
        <!-- 顶部结束 -->
        <!-- 中部开始 -->
        <!-- 左侧菜单开始 -->
        <th:block th:if="${session.user} != null">
            <div class="left-nav">
                <div id="side-nav">
                    <ul id="nav">
                        <li th:if="${session.user.right} eq 1">
                            <a href="javascript:;">
                                <i class="iconfont left-nav-li" lay-tips="学生操作">&#xe6b8;</i>
                                <cite>学生操作</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                            <ul class="sub-menu">
                                <li>
                                    <a th:date-sid="${session.isStudent} == true ? ${session.user.sid} : 231" onclick="xadmin.add_tab('查看成绩', '/kxp/student/toscore?sid=' + this.getAttribute('date-sid') +'&syear=1')">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>查看成绩</cite>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li th:if="${session.user.right} eq 2 or ${session.user.right} eq 0">
                            <a href="javascript:;">
                                <i class="iconfont left-nav-li" lay-tips="学生管理">&#xe723;</i>
                                <cite>学生管理</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                            <ul class="sub-menu">
                                <li>
                                    <a th:data-tid="${session.isStudent} == false ? ${session.user.tid} : 324" onclick="xadmin.add_tab('查看学生','/kxp/teacher/getAllStudent?tid=' + this.getAttribute('data-tid'))">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>查看学生</cite></a>
                                </li>
                            </ul>
                        </li>
                        <li th:if="${session.user.right} eq 0">
                            <a href="javascript:;">
                                <i class="iconfont left-nav-li" lay-tips="教师管理">&#xe723;</i>
                                <cite>教师管理</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                            <ul class="sub-menu">
                                <li>
                                    <a onclick="xadmin.add_tab('查看教师','/kxp/admin/getAllTeacher')">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>查看教师</cite></a>
                                </li>
                            </ul>
                        </li>
                        <li th:if="${session.user.right} eq 2 or ${session.user.right} eq 0">
                            <a href="javascript:;">
                                <i class="iconfont left-nav-li" lay-tips="学生异动管理">&#xe723;</i>
                                <cite>学生异动管理</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                            <ul class="sub-menu">
                                <li>
                                    <a th:data-tid="${session.isStudent} == false ? ${session.user.tid} : 432" onclick="xadmin.add_tab('学生转专业申请','/kxp/teacher/toReceiveSwitchApplication?tid=' + this.getAttribute('data-tid'))">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>学生转专业申请</cite></a>
                                </li>
                            </ul>
                            <ul class="sub-menu">
                                <li>
                                    <a th:data-tid="${session.isStudent} == false ? ${session.user.tid} : 432" onclick="xadmin.add_tab('学生退学申请','/kxp/teacher/toReceiveDropApplication?tid=' + this.getAttribute('data-tid'))">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>学生退学申请</cite></a>
                                </li>
                            </ul>
                        </li>
                        <li th:if="${session.user.right} eq 1">
                            <a href="javascript:;">
                                <i class="iconfont left-nav-li" lay-tips="转专业管理">&#xe726;</i>
                                <cite>转专业管理</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                            <ul class="sub-menu">
                                <li>
                                    <a th:date-sid="${session.isStudent} == true ? ${session.user.id} : 0" onclick="xadmin.add_tab('我的转专业请求','/kxp/student/toAllSwitchApplication?sid=' + this.getAttribute('date-sid'))">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>我的转专业请求</cite></a>
                                </li>
                                <li>
                                    <a onclick="xadmin.add_tab('转专业申请','/kxp/student/toSendSwitchApplication')">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>转专业申请</cite></a>
                                </li>
                            </ul>
                        </li>
                        <li th:if="${session.user.right} eq 1">
                            <a href="javascript:;">
                                <i class="iconfont left-nav-li" lay-tips="系统统计">&#xe6ce;</i>
                                <cite>退学管理</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                            <ul class="sub-menu">
                                <li>
                                    <a onclick="xadmin.add_tab('退学申请','/kxp/student/toSendDropApplication')">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>退学申请</cite></a>
                                </li>
                                <li>
                                    <a th:date-sid="${session.isStudent} == true ? ${session.user.id} : 0" onclick="xadmin.add_tab('我的退学请求','/kxp/student/toAllDropApplication?sid=' + this.getAttribute('date-sid'))">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>我的退学请求</cite></a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </th:block>

        <th:block th:if="${session.user} == null">
            <div class="left-nav">
                <div id="side-nav0">
                    <ul id="nav0">
                        <li>
                            <a href="/kxp/toStuLogin">
                                <i class="iconfont left-nav-li" lay-tips="登录显示操作">&#xe6b8;</i>
                                <cite style="color:red;">登录显示操作</cite>
                                <i class="iconfont nav_right">&#xe697;</i></a>
                        </li>
                    </ul>
                </div>
            </div>
        </th:block>

        <!-- <div class="x-slide_left"></div> -->
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
            <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
                <ul class="layui-tab-title">
                    <li class="home">
                        <i class="layui-icon">&#xe68e;</i>我的桌面</li></ul>
                <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
                    <dl>
                        <dd data-type="this">关闭当前</dd>
                        <dd data-type="other">关闭其它</dd>
                        <dd data-type="all">关闭全部</dd></dl>
                </div>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe th:src='@{/towelcome}' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                    </div>
                </div>
                <div id="tab_show"></div>
            </div>
        </div>
        <div class="page-content-bg"></div>
        <style id="theme_style"></style>
        <!-- 右侧主体结束 -->
        <!-- 中部结束 -->
        <script>//百度统计可去掉
            var _hmt = _hmt || []; (function() {
                var hm = document.createElement("script");
                hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();</script>
    </body>

</html>
